<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>汉服学校活动 - 专题大屏</title>
    <script src="../echarts.min.js"></script>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
            background: url('../1.jpg') no-repeat center center fixed;
            background-size: cover;
            color: #ffffff;
            overflow-x: hidden;
            padding: 15px;
            height: 100vh;
            box-sizing: border-box;
            background-color: transparent;
        }
        
        body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.1);
            z-index: -1;
        }
        
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 40px;
            background: rgba(255, 255, 255, 0.4);
            border: 2px solid #4A90E2;
            border-radius: 10px;
            box-shadow: 0 3px 10px rgba(74, 144, 226, 0.4);
        }
        
        .header h1 {
            font-size: 28px;
            font-weight: bold;
            color: #ffffff;
            text-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
            letter-spacing: 2px;
        }
        
        .header .back-button {
            padding: 10px 24px;
            background: rgba(139, 92, 246, 0.2);
            border: 1px solid rgba(139, 92, 246, 0.6);
            border-radius: 8px;
            color: #ffffff;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .header .back-button:hover {
            background: rgba(139, 92, 246, 0.4);
            transform: translateY(-2px);
            box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
        }
        
        .header .back-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
            transition: all 0.5s ease;
        }
        
        .header .back-button:hover::before {
            left: 100%;
        }
        
        .time-filter {
            display: flex;
            justify-content: center;
            margin: 30px 0;
            gap: 15px;
        }
        
        .time-filter span {
            padding: 8px 24px;
            background: rgba(10, 10, 30, 0.7);
            border: 1px solid rgba(139, 92, 246, 0.4);
            border-radius: 20px;
            color: #cccccc;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 14px;
            letter-spacing: 1px;
        }
        
        .time-filter span.active,
        .time-filter span:hover {
            background: rgba(139, 92, 246, 0.4);
            color: #ffffff;
            box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
            transform: translateY(-2px);
        }
        
        .overview-section {
            margin: 0 40px 30px;
            padding: 25px;
            background: rgba(224, 210, 255, 0.9);
            border: 2px solid #4A90E2;
            border-radius: 10px;
            box-shadow: 0 3px 10px #4a90e2;
        }
        
        .overview-section p {
            font-size: 16px;
            line-height: 1.8;
            color: #e0e0e0;
            text-indent: 2em;
        }
        
        .indicators-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin: 0 40px 30px;
        }
        
        .indicator-card {
            padding: 25px;
            background: rgba(224, 210, 255, 0.9);
            border: 2px solid #4A90E2;
            border-radius: 10px;
            text-align: center;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            box-shadow: 0 3px 10px #4a90e2;
        }
        
        .indicator-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, rgba(139, 92, 246, 0.6), rgba(236, 72, 153, 0.6));
        }
        
        .indicator-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
            border-color: rgba(139, 92, 246, 0.6);
        }
        
        .indicator-card .title {
            font-size: 14px;
            color: #b0b0b0;
            margin-bottom: 10px;
            letter-spacing: 1px;
        }
        
        .indicator-card .value {
            font-size: 28px;
            font-weight: bold;
            color: #ffffff;
            margin-bottom: 8px;
            text-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
        }
        
        .indicator-card .change {
            font-size: 12px;
            color: #00ff99;
        }
        
        .tables-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin: 0 40px 40px;
        }
        
        .table-section {
            background: rgba(224, 210, 255, 0.9);
            border: 2px solid #4A90E2;
            border-radius: 10px;
            padding: 25px;
            box-shadow: 0 3px 10px #4a90e2;
        }
        
        .table-section h2 {
            font-size: 20px;
            margin-bottom: 20px;
            color: #ffffff;
            text-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(139, 92, 246, 0.3);
        }
        
        .data-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
        }
        
        .data-table th {
            text-align: left;
            padding: 12px;
            background: rgba(139, 92, 246, 0.1);
            border-bottom: 1px solid rgba(139, 92, 246, 0.3);
            color: #b0b0b0;
            font-weight: normal;
        }
        
        .data-table td {
            padding: 12px;
            border-bottom: 1px solid rgba(139, 92, 246, 0.1);
            color: #e0e0e0;
            transition: all 0.3s ease;
        }
        
        .data-table tr:hover td {
            background: rgba(139, 92, 246, 0.1);
            color: #ffffff;
            transform: translateX(5px);
        }
        
        .data-table tr:last-child td {
            border-bottom: none;
        }
        
        /* 动画效果 */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .fade-in-up {
            animation: fadeInUp 0.8s ease-out;
        }
        
        /* 响应式设计 */
        @media (max-width: 1400px) {
            .indicators-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .tables-container {
                grid-template-columns: 1fr;
            }
        }
        
        @media (max-width: 768px) {
            .header {
                flex-direction: column;
                gap: 15px;
                padding: 15px 20px;
            }
            
            .header h1 {
                font-size: 22px;
            }
            
            .overview-section,
            .indicators-grid,
            .tables-container {
                margin: 0 20px;
            }
            
            .indicators-grid {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <div class="header">
        <h1>汉服学校活动分析</h1>
        <button class="back-button" onclick="window.location.href='../hanfu-dashboard.html'">返回主大屏</button>
    </div>
    
    <div class="time-filter">
        <span class="active" data-period="30">近30天</span>
        <span data-period="90">近90天</span>
        <span data-period="365">近1年</span>
    </div>
    
    <div class="overview-section fade-in-up">
        <p>汉服学校活动数据分析展示了汉服文化在校园内的传播和普及情况。近年来，越来越多的学校将汉服文化引入校园，通过社团活动、文化节、传统节日庆祝等形式，让学生近距离接触和感受汉服文化的魅力。校园作为传统文化传承的重要阵地，为汉服文化的年轻化和持续发展提供了肥沃土壤。</p>
    </div>
    
    <div class="indicators-grid">
        <div class="indicator-card fade-in-up" style="animation-delay: 0.1s">
            <div class="title">学校活动总数</div>
            <div class="value">215 场</div>
            <div class="change">同比增长 56.8%</div>
        </div>
        <div class="indicator-card fade-in-up" style="animation-delay: 0.2s">
            <div class="title">参与学校数量</div>
            <div class="value">138 所</div>
            <div class="change">同比增长 42.3%</div>
        </div>
        <div class="indicator-card fade-in-up" style="animation-delay: 0.3s">
            <div class="title">参与学生人次</div>
            <div class="value">8.5 万</div>
            <div class="change">同比增长 48.6%</div>
        </div>
        <div class="indicator-card fade-in-up" style="animation-delay: 0.4s">
            <div class="title">平均每场参与人数</div>
            <div class="value">395 人</div>
            <div class="change">同比增长 7.2%</div>
        </div>
    </div>
    
    <div class="tables-container">
        <div class="table-section fade-in-up">
            <h2>学校类型分布</h2>
            <table class="data-table">
                <thead>
                    <tr>
                        <th>学校类型</th>
                        <th>活动数量</th>
                        <th>占比</th>
                        <th>平均参与人数</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>高校</td>
                        <td>95 场</td>
                        <td>44.2%</td>
                        <td>520 人</td>
                    </tr>
                    <tr>
                        <td>中学</td>
                        <td>68 场</td>
                        <td>31.6%</td>
                        <td>410 人</td>
                    </tr>
                    <tr>
                        <td>小学</td>
                        <td>52 场</td>
                        <td>24.2%</td>
                        <td>280 人</td>
                    </tr>
                </tbody>
            </table>
        </div>
        
        <div class="table-section fade-in-up">
            <h2>热门学校活动榜单</h2>
            <table class="data-table">
                <thead>
                    <tr>
                        <th>排名</th>
                        <th>活动名称</th>
                        <th>学校</th>
                        <th>参与人数</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>1</td>
                        <td>汉服文化节开幕式</td>
                        <td>北京大学</td>
                        <td>2,580 人</td>
                    </tr>
                    <tr>
                        <td>2</td>
                        <td>汉服走秀表演</td>
                        <td>浙江大学</td>
                        <td>1,860 人</td>
                    </tr>
                    <tr>
                        <td>3</td>
                        <td>汉服制作工作坊</td>
                        <td>南京大学</td>
                        <td>1,540 人</td>
                    </tr>
                    <tr>
                        <td>4</td>
                        <td>汉服知识竞赛</td>
                        <td>武汉大学</td>
                        <td>1,230 人</td>
                    </tr>
                    <tr>
                        <td>5</td>
                        <td>传统节日汉服体验</td>
                        <td>清华大学</td>
                        <td>980 人</td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    
    <script>
        // 时间周期切换
        document.querySelectorAll('.time-filter span').forEach(span => {
            span.addEventListener('click', function() {
                document.querySelectorAll('.time-filter span').forEach(s => s.classList.remove('active'));
                this.classList.add('active');
                // 这里可以添加数据更新逻辑
            });
        });
        
        // 添加页面载入动画
        window.addEventListener('load', function() {
            const elements = document.querySelectorAll('.fade-in-up');
            elements.forEach((el, index) => {
                el.style.animationDelay = (index * 0.1) + 's';
                el.style.opacity = '1';
            });
        });
    </script>
</body>
</html>